package fractal.res;

import java.awt.image.BufferedImage;

import jinyilw.swing.icon.LazyCustomIcon;
import jinyilw.swing.icon.LazyScaleIcon;
import jinyilw.swing.ResourceManager;

public class Resource
{
	private Resource()
	{
	}

	public static LazyScaleIcon getLazyScaleIcon(String path)
	{
		return new LazyScaleIcon(Resource.class, path);
	}

	public static LazyCustomIcon getLazyCustomIcon(String path, int width,
			int height)
	{
		return new LazyCustomIcon(Resource.class, path, width, height);
	}

	public static BufferedImage getBufferedImage(String path)
	{
		return ResourceManager
				.getBufferedImage(Resource.class.getResource(path));
	}
}
